package com.android.inestpin.model.group;

import com.google.gson.Gson;
import com.android.inestpin.utils.okhttp3.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/6/14.
 */

public abstract  class MainThematicActivity_InsertCallback extends Callback<MainThematicActivity_Insert> {

    @Override
    public MainThematicActivity_Insert parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        MainThematicActivity_Insert mainThematicActivity_Insert = new Gson().fromJson(string, MainThematicActivity_Insert.class);
        return mainThematicActivity_Insert;
    }
}